package com.jingdinajichi.subject.common.entity;

import lombok.Data;

/**
 * @author zwy
 * @version 1.0
 * @description: PageInfo
 * @date 2025/7/16 17:49
 */
@Deprecated
@Data
public class PageInfo {
    private Integer pageNum ;
    private Integer pageSize ;
    public Integer getPageNum() {
        if(pageNum == null || pageNum < 1){
            pageNum = 1;
        }
        return pageNum;
    }
    public Integer getPageSize() {
        if(pageSize == null || pageSize < 1 || pageSize > Integer.MAX_VALUE){
            pageSize = 20;
        }
        return pageSize;
    }
}
